package com.bestcem.xm.award.dao.mapper;

import com.bestcem.xm.award.entity.mysql.AwardCustomAttachmentEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 定制奖励附件mapper
 *
 * @author sh.pei <sh.pei@idiaoyan.com>
 * @version v1.0
 * @date 2021/9/14 15:29
 */
@Mapper
public interface AwardCustomAttachmentEntityMapper {
    /**
     *
     * @date 2021-09-23
     */
    int deleteByPrimaryKey(@Param("awardId") String awardId, @Param("attachmentId") String attachmentId);

    /**
     *
     * @date 2021-09-23
     */
    int insert(AwardCustomAttachmentEntity record);

    /**
     *
     * @date 2021-09-23
     */
    int insertSelective(AwardCustomAttachmentEntity record);

    /**
     *
     * @date 2021-09-23
     */
    AwardCustomAttachmentEntity selectByPrimaryKey(@Param("awardId") String awardId, @Param("attachmentId") String attachmentId);

    /**
     *
     * @date 2021-09-23
     */
    int updateByPrimaryKeySelective(AwardCustomAttachmentEntity record);

    /**
     *
     * @date 2021-09-23
     */
    int updateByPrimaryKey(AwardCustomAttachmentEntity record);

    /**
     * 根据id查询附件数据
     * @param awardId
     * @return
     */
    List<AwardCustomAttachmentEntity> selectByAwardId(String awardId);

    /**
     * 根据id删除附件数据
     * @param awardId
     * @return
     */
    int deleteByAwardId(String awardId);
}